package club.janna.springboot.study.bootstrap;

import club.janna.springboot.study.config.AopAppConfig;
import club.janna.springboot.study.service.JannaService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AopBootstrap {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(AopAppConfig.class);
        JannaService jannaService = context.getBean(JannaService.class);
        System.out.println(jannaService.getName());
    }
}
